package mz.co.frameworks.loader;

import java.util.HashMap;
import java.util.Map;

public class LoaderFactory {

	public static enum Loader {
		XLS, XLSX, CVS
	};

	private static final Map<Loader, ILoader> LOADERS = new HashMap<Loader, ILoader>();

	static {
		LOADERS.put(Loader.XLS, new XlsLoader());
		LOADERS.put(Loader.XLSX, new XlsxLoader());
	}

	public static final ILoader getLoader(Loader loader) {
		return LOADERS.get(loader);
	}

}
